<?php

require_once("../../class2.php");
require_once(HEADERF);
		$user_id = USERID;
		$user_name = USERNAME;
require_once("./includes/require_all.php");

$tbe=mysql_real_escape_string($_POST['text']);
$gpref= $_GET['pref'];
$gname= urldecode($_GET['name']);

if (in_array($user_name,$mods,true)) {
	mysql_query("INSERT INTO `cms_gamenews` (`game`,`game-prefix`,`user`,`message`) VALUES ('$gname','$gpref','$user_name','$tbe')");
}

?>  
			